package prender;

import javax.servlet.ServletRequest;

class Utility {

	static final String getObjectSignature(Object o) {
		if (o == null) {
			return "null";
		}
		return o.getClass().getName() + "@" + Integer.toHexString(o.hashCode());
	}
	
	static final MyRequest getMyRequest(ServletRequest request) {
		return (MyRequest)request.getAttribute(MyRequest.MY_REQUEST_KEY);
	}
	
}
